<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2023-02-02 10:45:10
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-02-02 10:48:15
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.onload = function(){
           // 创建一个div 节点
           var divEle = document.createElement('div');
           document.body.appendChild(divEle);

              // 创建一个文本节点
           var textNode = document.createTextNode('人不犯我,我不犯人');
           divEle.appendChild(textNode);
        }
    </script>
</head>
<body>
    
</body>
</html>